package com.yc.cinema.web;

import com.yc.cinema.biz.CommentsBiz;
import com.yc.cinema.biz.UserBiz;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;

import javax.annotation.Resource;


@Component("uAction")
public class UserAction {

	@Autowired
	@Lazy
	private UserBiz ubiz;
	@Autowired
	private CommentsBiz cbiz;

	public UserBiz getUbiz() {
		return ubiz;
	}

	public void setUbiz(UserBiz ubiz) {
		this.ubiz = ubiz;
	}

	public CommentsBiz getCbiz() {
		return cbiz;
	}

	public void setCbiz(CommentsBiz cbiz) {
		this.cbiz = cbiz;
	}

	public void login() throws InterruptedException {
		Thread.sleep((long) (Math.random() * 1000));
	}
}
